/**
 * @author: Stephen Halm
 * @date: Nov, 09, 2010
 * @version 0.0.1
 * @class PumpState
 */
package uicgas.globaldata;

import java.io.Serializable;

/**
 * @author: Stephen Halm
 * @date: Nov, 09, 2010
 * @version 0.0.1
 * @class PumpState
 */
public class PumpState extends MessagePayload implements Serializable
{
	private static final long serialVersionUID = -5528694933989203875L;

	private States currentState;
	private States newState;
	private int pumpID = -1;
	private int destinationID = -1;

	public PumpState(States current, States nextState, int ID)
	{
		currentState = current;
		newState = nextState;
		pumpID = ID;
	}
	
	public PumpState(States current, States nextState, int ID, int dest)
	{
		currentState = current;
		newState = nextState;
		pumpID = ID;
		destinationID=dest;
	}

	public PumpState(States current, int ID)
	{
		currentState = current;
		pumpID = ID;
	}

	public int getPumpID()
	{
		return pumpID;
	}

	public States getCurrentState()
	{
		return currentState;
	}

	public States getNewState()
	{
		return newState;
	}

	public void setDestinationID(int destinationID)
	{
		this.destinationID = destinationID;
	}

	public int getDestinationID()
	{
		return destinationID;
	}

}
